package com.mlody.chapter22;

/**
 * Created by tmlod_000 on 2014-11-29.
 */
public class ObserverPatternDemo {
    public static void main(String [] args){
        Subject subject= new Subject();
        new HexaObserver(subject);
        new BinaryObserver(subject);

        subject.setState(2);

    }
}
